<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head lang="zh-CN">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script src="js/jquery-1.7.2.min.js"></script>
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
      <script src="js/jquery.validate.min.js"></script>
    <script src="js/messages_zh.js"></script>
<title>Insert title here</title>
</head>
<script type="text/javascript">
</script>
<body>
<div style="height: 100%;width: 100% ;">
		<!-- 导航栏 -->
		<div style="background-color:#BFBDC2" class="navbar navbar-default navbar-fixed-top" role="navigation">
			<div class="container-fluid">
		    	<div class="navbar-header">
		      	<a class="navbar-brand" href="enterusermain"><img alt="加载失败" src="img/elmlogo.png" style="width:60px;heigth:28px"/></a>  <!-- logo标题 -->
		    	</div>
		
		    	<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
			      	<ul class="nav navbar-nav navbar-right" style="margin-right: 50px">
			        	<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown"><img alt="" src="img/order.png">我的订单<span class="caret"></span></a>
			        		<ul class="dropdown-menu" role="menu">
			        			<li><a href="pastuserorder">过往订单</a></li>
					            <li class="divider"></li>
					            <li><a href="currentuserorder">当前订单</a></li>
			        		</ul>
			        	</li>
			        	
			        	<li><a href="favorite"><img alt="" src="img/favorite.png" style="90%">我的收藏</a></li>
			        	<li><a href="shoppingcar"><img alt="" src="img/shoppingcar.png">我的购物车</a></li>
			        	<li><a href="updateUI">修改信息</a></li>
			        	<li><a href="index.jsp">退出登录</a></li>
			      	</ul>
		    	</div><!-- /.navbar-collapse -->
		  	</div><!-- /.container-fluid -->
		</div>
		
		<!-- 搜索窗口 -->
		<div style="float: right; margin-top: 80px; margin-right:50px; text-align: center; width:30%;">
		
		</div>
		
		<!--展现页面   jsp:forward貌似挺有用的-->
		<div class="container">
			<div  class="col-md-12" style="margin-top: 50px">
				<table class="table table-striped">
					<tr>
						<td>索引</td>
						<td>店铺</td>
						
						<td>描述</td>
						<td>地址</td>
						<td>电话</td>
					</tr>
					
				    <c:forEach items="${favoriteseller}" var = "fseller" varStatus="fs">
				    	<tr>
							<td>${fs.index+1}</td>
							<td><a href="showfood?id=${fseller.sellerid}"><img alt="" src="/upload${fseller.sellerimg} " style="width: 100px;height: 100px">${fseller.shopname}
							 </td></a>
							<td style="margin-top: 50px">${fseller.shopgenre}</td>
							<td>${fseller.selleraddr}</td>
							<td>${fseller.sellerphone}</td>
				    	</tr>
					</c:forEach>
				</table>
			</div>
			<div style="position: fixed;bottom: 20px;">
		
			</div>
		</div>
	</div>
</body>
</html>